







<div class="x-body">
    <div class="layui-row">
       
    </div>
    <xblock>
        <button class="layui-btn" ><ob_link><a  href="{:url('lotteryPlayAdd',['is_old'=>0])}" style="color: white"> 新 增</a></ob_link></button>
        <span class="x-right" style="line-height:40px">共有数据：{$list.count} 条</span>
    </xblock>
    <ul class="layui-nav" lay-filter="">
        {volist name="cate"  id='vo'}
        {if condition='$vo.id eq $param["cate_id"]'}
        <li class="layui-nav-item layui-this"><a href="{:url('lotteryPlayList',['cate_id'=>$vo['id']])}">{$vo.name}</a></li>
        {else/}
        <li class="layui-nav-item"><a href="{:url('lotteryPlayList',['cate_id'=>$vo['id']])}">{$vo.name}</a></li>
        {/if}
        {/volist}
    </ul>

    {notempty name='list.list'}
    {volist name='list.list' id='vo' key="k"}
    {if condition='$k eq 1'}<hr/>{/if}
    <xblock>
        <h3>{$vo.name}<span class="click_lottery" onclick="clickLottery(this,{$k});" style="float: right;cursor: pointer" data-show="0" >+</span></h3>
    </xblock>
    <div id="lottery_list_{$k}" data-id="11"  style="display: none" >
        <table class="layui-table x-admin"  >
            <thead>
            <tr>

                <!--            <th>ID</th>-->
                <!--            <th>玩法名称</th>-->
                <!--            <th>最高奖金</th>-->
                <!--            <th>最低奖金</th>-->
                <!--            <th>中奖最高奖金</th>-->
                <!--            <th>总注数</th>-->
                <!--            <th>最高注数</th>-->
                <!--            <th>最低消费</th>-->
                <!--            <th>最高消费</th>-->
                <!--            <th>玩法提示</th>-->
                <!--            <th class="status-th">状态</th>-->

                <!--            <th>操作</th>-->
            </thead>

            <tbody>

            {volist name='vo.list' id='v' key="ke"}
            <tr>
                <td><span>ID:</span></br>{$v.id}</td>
                <td><span>{$v.name}:</span></br>{$v.number}</td>
                <td><span>最高奖金:</span></br>{$v.max_reward}</td>
                <td><span>最低奖金:</span></br>{$v.min_reward}</td>
                <td><span>赔率:</span></br>{$v.mult}</td>
                <td><span>中奖最高奖金:</span></br>{$v.is_max_reward}</td>
                <td><span>总注数:</span></br>{$v.total_injection}</td>
                <td><span>最高注数:</span></br>{$v.max_injection}</td>
                <td><span>最低消费:</span></br>{$v.min_consumption}</td>
                <td><span>最高消费:</span></br>{$v.max_consumption}</td>
                <td><span>玩法提示:</span></br>{$v.describle}</td>
                <td><span>状态:</span></br><ob_link><a class="ajax-get" href="{:url('setStatus', array('ids' => $v['id'], 'status' => (int)!$v['status']))}">{$v.status_text}</a></ob_link></td>
                <td class="td-manage">
                    <!--<a onclick="member_stop(this,'10001')" href="javascript:;"  title="启用">-->
                    <!--<i class="layui-icon">&#xe601;</i>-->
                    <!--</a>-->
                    <ob_link><a title="编辑"  href="{:url('lotteryPlayEdit', array('id' => $v['id'],'is_old'=>0))}" >
                        <i class="layui-icon">&#xe642;</i>
                    </a></ob_link>

                </td>
            </tr>
            {/volist}
            </tbody>
        </table>
    </div>

    {/volist}
    {/notempty}


</div>
<script>
    layui.use('form', function(){
        form = layui.form;

    });
    function delAll (argument) {

        var data = tableCheck.getData();


        layer.confirm('确认要删除吗？',function(index){
            //捉到所有被选中的，发异步进行删除
            //监听提交
            var url="{:url('setStatus')}";
            $.post(url,{ids:data,status:-1},function (d) {
                if(d.code==1){
                    $(".layui-form-checked").not('.header').parents('tr').remove();
                    layer.msg('删除成功', {icon: 1});

                }else{
                    layer.msg(d.msg);

                }
            },'json');



        });
    }
    function clickLottery(e,a) {

        var show=$(e).attr('data-show');
        if(show==1){

            $(e).attr('data-show',0);
            $("#lottery_list_"+a).hide();
            $(e).html('+');
        }else{
            $(e).attr('data-show',1);
            $("#lottery_list_"+a).show();
            $(e).html('-');
        }
    }
</script>

</body>

</html>




